package com.company.dao;

import java.util.List;

import com.company.entity.Chanpinfuwu;
import com.company.entity.News;
import com.company.entity.Projects;

public class ProjectDao extends BaseDao<Projects> {
	public Projects query(int id) {
		String sql = "from Projects where id = ?";
		return queryEntiy(sql, id);
	}

	public List<Projects> querys() {
		String sql = "from Projects";
		return (List<Projects>) queryEntiys(sql);
	}

	public void save(Projects projects) {
		super.save(projects);
	}

	public void update(Projects projects) {
		super.update(projects);
	}

	public void delete(Projects projects) {
		super.delete(projects);
	}
}
